home *** CD-ROM | disk | FTP | other *** search
- Path: informatik.tu-muenchen.de!news
- From: Peter Breitling <breitlip@informatik.tu-muenchen.de>
- Newsgroups: comp.lang.c++
- Subject: Get name of current method, class or function automatically?
- Date: 16 Jan 1996 23:01:46 GMT
- Organization: Technische Universitaet Muenchen, Germany
- Distribution: world
- Message-ID: <4dhaoq$f6l@sunsystem5.informatik.tu-muenchen.de>
- NNTP-Posting-Host: breitlip.modem.informatik.tu-muenchen.de
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.1N (X11; I; Linux 1.2.5 i486)
- X-URL: news:comp.lang.c++?ALL
-
- I want to write some debugging functions for my library:
- i have the problem that i want to pass debugging information along with the
- name of the method, the linenumber and the file.
-
- The macros __FILE__ and __LINE__ are standard C(++). Is there something
- similar- like __FUNCTION__ or __METHOD__ or __CLASS__ in the scope of the
- function, method or class?
-
- Is such thing planned in future?
-
- If not - why? I think such things would be very useful. Or is there any
- workaround?
-
- Cheers,
- Peter
- --
- __ __
- /__) \_)reitling * breitlip@informatik.tu-muenchen.de irc://LooL / (
- ( eter )__) * http://www.informatik.tu-muenchen.de/~breitlip/ (_Oo\_
-
-